Optimal. Leaf size=22 \[ -\frac {a A}{x}+b B x+(A b+a B) \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {77}
\begin {gather*} \log (x) (a B+A b)-\frac {a A}{x}+b B x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rubi steps
\begin {align*} \int \frac {(a+b x) (A+B x)}{x^2} \, dx &=\int \left (b B+\frac {a A}{x^2}+\frac {A b+a B}{x}\right ) \, dx\\ &=-\frac {a A}{x}+b B x+(A b+a B) \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 22, normalized size = 1.00 \begin {gather*} -\frac {a A}{x}+b B x+(A b+a B) \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 23, normalized size = 1.05
method | result | size |
default | \(-\frac {a A}{x}+b B x +\left (A b +B a \right ) \ln \left (x \right )\) | \(23\) |
risch | \(-\frac {a A}{x}+b B x +A \ln \left (x \right ) b +B \ln \left (x \right ) a\) | \(23\) |
norman | \(\frac {b B \,x^{2}-A a}{x}+\left (A b +B a \right ) \ln \left (x \right )\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 22, normalized size = 1.00 \begin {gather*} B b x + {\left (B a + A b\right )} \log \left (x\right ) - \frac {A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.18, size = 26, normalized size = 1.18 \begin {gather*} \frac {B b x^{2} + {\left (B a + A b\right )} x \log \left (x\right ) - A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 19, normalized size = 0.86 \begin {gather*} - \frac {A a}{x} + B b x + \left (A b + B a\right ) \log {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.39, size = 23, normalized size = 1.05 \begin {gather*} B b x + {\left (B a + A b\right )} \log \left ({\left | x \right |}\right ) - \frac {A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.30, size = 22, normalized size = 1.00 \begin {gather*} \ln \left (x\right )\,\left (A\,b+B\,a\right )+B\,b\,x-\frac {A\,a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________